import request from '@/utils/request'

// 查询终端心跳上传报文记录列表
export function listMsg(query) {
  return request({
    url: '/system/heartbeatMsg2/list',
    method: 'get',
    params: query
  })
}

// 查询终端心跳上传报文记录详细
export function getMsg(msgid) {
  return request({
    url: '/system/heartbeatMsg2/' + msgid,
    method: 'get'
  })
}

// 新增终端心跳上传报文记录
export function addMsg(data) {
  return request({
    url: '/system/heartbeatMsg2',
    method: 'post',
    data: data
  })
}

// 修改终端心跳上传报文记录
export function updateMsg(data) {
  return request({
    url: '/system/heartbeatMsg2',
    method: 'put',
    data: data
  })
}

// 删除终端心跳上传报文记录
export function delMsg(msgid) {
  return request({
    url: '/system/heartbeatMsg2/' + msgid,
    method: 'delete'
  })
}
